package com.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Pay {
	private int id;
	//private String pay_emNumber;
	private Employee employee;
	private String pay_emName;
	private String pay_month;
	private String pay_baseMoney;
	private String pay_overtime;
	private String pay_age;
	private String pay_check;
	private String pay_absent;
	private String pay_safety;
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	/*public String getPay_emNumber() {
		return pay_emNumber;
	}
	public void setPay_emNumber(String payEmNumber) {
		pay_emNumber = payEmNumber;
	}*/
	@ManyToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="pay_emNumber")
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	
	public String getPay_emName() {
		return pay_emName;
	}
	
	public void setPay_emName(String payEmName) {
		pay_emName = payEmName;
	}
	public String getPay_month() {
		return pay_month;
	}
	public void setPay_month(String payMonth) {
		pay_month = payMonth;
	}
	public String getPay_baseMoney() {
		return pay_baseMoney;
	}
	public void setPay_baseMoney(String payBaseMoney) {
		pay_baseMoney = payBaseMoney;
	}
	public String getPay_overtime() {
		return pay_overtime;
	}
	public void setPay_overtime(String payOvertime) {
		pay_overtime = payOvertime;
	}
	public String getPay_age() {
		return pay_age;
	}
	public void setPay_age(String payAge) {
		pay_age = payAge;
	}
	public String getPay_check() {
		return pay_check;
	}
	public void setPay_check(String payCheck) {
		pay_check = payCheck;
	}
	public String getPay_absent() {
		return pay_absent;
	}
	public void setPay_absent(String payAbsent) {
		pay_absent = payAbsent;
	}
	public String getPay_safety() {
		return pay_safety;
	}
	public void setPay_safety(String paySafety) {
		pay_safety = paySafety;
	}
	
}
